<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./axios.js"></script>
</head>
<body>
    <button>删除</button>

    <script>
        document.querySelector('button').addEventListener('click',()=>{
            axios({
                method : 'delete',
                url :'http://www.itcbc.com:3006/api/delbook',
                params : {
                    id :439,
                    appkey:'987411'
                }
            }).then(({data})=>{
                console.log(data);
            })
        })
    </script>
</body>
</html>